<?php

/**
 * Created by PhpStorm.
 * User: izbol
 * Date: 2017/4/10
 * Time: 18:46
 */
class input{

    function get($key){
        if(isset($_GET[$key])===false){
            return false;
        }
        return $_GET[$key];
    }

    function post($key){
        if(isset($_POST[$key])===false){
            return false;
        }
        return $_POST[$key];
    }

    function session($key){
        if(isset($_SESSION[$key])===false){
            return false;
        }
        return $_SESSION[$key];
    }
}